from common.BasePage1 import BasePage1
from Buiness.LoginPage1 import LoginPage1
class Client(BasePage1):
    def __init__(self,driver=None):
        super().__init__(driver)
        self.system_manage_loc = "xpath,/html/body/div[2]/div[1]/a"
        self.system_manage_frame_name = "iframe-1"
    def enter_system_manage(self):
        self.into_frame(self.system_manage_frame_name)
        self.click(self.system_manage_loc)
        self.wait(2)
    def test_client(self):
        lg = LoginPage1(driver=self.driver)
        lg.test_login()
        self.enter_system_manage()
if __name__ == '__main__':
    cl=Client()
    cl.test_client()